 function isClass(o){
        if(o===null) return "Null";
        if(o===undefined) return "Undefined";
        return Object.prototype.toString.call(o).slice(8,-1);
      }
 var deepClone = function deepClone(obj){
        var result,oClass=isClass(obj);
        //确定result的类型
        if(oClass==="Object"){
          result={};
        }else if(oClass==="Array"){
          result=[];
        }else{
          return obj;
        }
        for(let key in obj){       	
          var copy=obj[key]; 
          if(isClass(copy)==="Object"){
              result[key]=deepClone(copy);//递归调用
          }else if(isClass(copy)==="Array" ){
          	if(key == 'sampleBeans'){
          		  result['planSampleBeans']=deepClone(copy);//递归调用
          	}else if(key == 'itemBeans'){
          		result['planItemBeans']=deepClone(copy);
          		
          	}else if(key == 'sampleDetailBeans'){
          		result['psDetailBeans']=deepClone(copy);		
          	}else if(key == 'planSampleBeans'){
          		result['sampleBeans']=deepClone(copy);		
          	}else if(key == 'planItemBeans'){
          		result['itemBeans']=deepClone(copy);		
          	}else if(key == 'psDetailBeans'){
          		result['sampleDetailBeans']=deepClone(copy);		
          	}else{
          		 result[key]=deepClone(copy);//递归调用
          	}  
          }else{
          	result[key] = obj[key]
          }
        }
        return  result;
      };
 
 export default {deepClone}
 
					//返回传递给他的任意对象的类
   